//
//  MealBuilder.swift
//  BuilderPatternDemo
//
//  Created by 好米有易 on 2017/9/28.
//  Copyright © 2017年 好米有易. All rights reserved.
//

import UIKit

class MealBuilder: NSObject {
    
    /// 素食汉堡套餐
   
   class func VegBurgerItem() -> Meal {
        
        let meal = Meal()
    
        meal.addItem(foodItem: VegBurger())
    
    
        return meal
    }
    
   /// 鸡肉汉堡
   class func ChickenBurgerItem() -> Meal {
        
        let meal = Meal()

        meal.addItem(foodItem: ChickenBurger())

        return meal
    }
    
    /// 可口可乐
    class func CokeItem() -> Meal {
        
        let meal = Meal()
        
        meal.addItem(foodItem: Coke())
        
        return meal
    }
    
    /// 百事可乐
    class func PesiItem() -> Meal {
        
        let meal = Meal()
        
        meal.addItem(foodItem: Pepsi())
        
        return meal
    }
    
}
